package question2;

public class StudentHand extends Hero {
private String skillname1;
private String skillname2;
private String skillname3;
private int skillMP1;
private int skillMP2;
private int skillMP3;

    public StudentHand() {
    }

    public StudentHand(String name, int HP, int MP, int atk, int defence, String skillname1,String skillname2,String skillname3, int skillMP1, int skillMP2, int skillMP3) {
        super(name, HP, MP, atk, defence);
        this.skillname1 = skillname1;
        this.skillname2 = skillname2;
        this.skillname3 = skillname3;
        this.skillMP1 = skillMP1;
        this.skillMP2 = skillMP2;
        this.skillMP3 = skillMP3;
    }

    @Override
    public void skill1() {
      if (skillMP1<super.getMP()){
          System.out.println(super.getName()+"释放了"+skillname1);
           super.setMP(super.getMP()-skillMP1);
      }
      else System.out.println("蓝量不足");
    }

    @Override
    public void skill2() {
        if (skillMP2<super.getMP()){
            System.out.println(super.getName()+"释放了"+skillname2);
            super.setMP(super.getMP()-skillMP2);
        }
        else System.out.println("蓝量不足");

    }

    @Override
    public void skill3() {
        if (skillMP3<super.getMP()){
            System.out.println(super.getName()+"释放了"+skillname3);
            super.setMP(super.getMP()-skillMP3);
        }
        else System.out.println("蓝量不足");
    }

    @Override
    public void speak() {
        System.out.println("懦弱之举，我决不姑息");
    }

    public String getSkillname1() {
        return skillname1;
    }

    public void setSkillname1(String skillname1) {
        this.skillname1 = skillname1;
    }

    public String getSkillname2() {
        return skillname2;
    }

    public void setSkillname2(String skillname2) {
        this.skillname2 = skillname2;
    }

    public String getSkillname3() {
        return skillname3;
    }

    public void setSkillname3(String skillname3) {
        this.skillname3 = skillname3;
    }

    public int getSkillMP1() {
        return skillMP1;
    }

    public void setSkillMP1(int skillMP1) {
        this.skillMP1 = skillMP1;
    }

    public int getSkillMP2() {
        return skillMP2;
    }

    public void setSkillMP2(int skillMP2) {
        this.skillMP2 = skillMP2;
    }

    public int getSkillMP3() {
        return skillMP3;
    }

    public void setSkillMP3(int skillMP3) {
        this.skillMP3 = skillMP3;
    }

    public void show(){
        System.out.println(super.getName()+" "+"血量："+super.getHP()+" "+"蓝量："+super.getMP());
    }

    @Override
    public void playStyle() {
        System.out.println("斗鱼余小C光速血怒连招："+skillname1+"接"+skillname2+"接"+"平A"+"接"+"平A"+"接"+skillname3);
    }
}
